/**
 * jims
 */
package com.jims.master.modules.reg.entity;

 import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jims.master.common.persistence.DataEntity;

/**
 * 预约挂号Entity
 * @author 赵宁
 * @version 2017-03-02
 */
public class ClinicAppoints extends DataEntity<ClinicAppoints> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 姓名
	private String registId;		// 号表ID
	private String inputCode;		// 姓名拼音码
	private String sex;		// 性别
	private String age;		// 年龄
	private String nation;		// 名族
	private String nationality;		// 国籍
	private Date birthdayDate;		// 生日
	private String nativePlace;		// 籍贯
	private String zipCode;		// 邮编
	private String homeplace;		// 出生地
	private String address;		// 住址
	private String identity;		// 身份
	private String idNo;		// 身份证号
	private String phone;		// 电话
	private String contacts;		// 联系人
	private String contactsAddress;		// 联系人地址
	private String contactsPhone;		// 联系人电话
	private String unitInContract;		// 合同单位
	private String chargeType;		// 费别
	private String firstVisitIndicator;//诊别
	private String orgId;		// 组织机构

	private ClinicForRegist clinicForRegist;//号表
	private ClinicIndex clinicIndex;

	private String visitDate;//就诊时间

	public ClinicAppoints() {
		super();
	}

	public ClinicAppoints(String id){
		super(id);
	}

	@Length(min=1, max=200, message="姓名长度必须介于 1 和 200 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="号表ID长度必须介于 1 和 64 之间")
	public String getRegistId() {
		return registId;
	}

	public void setRegistId(String registId) {
		this.registId = registId;
	}
	
	@Length(min=0, max=50, message="姓名拼音码长度必须介于 0 和 50 之间")
	public String getInputCode() {
		return inputCode;
	}

	public void setInputCode(String inputCode) {
		this.inputCode = inputCode;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=11, message="年龄长度必须介于 0 和 11 之间")
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
	
	@Length(min=0, max=1, message="名族长度必须介于 0 和 1 之间")
	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}
	
	@Length(min=0, max=1, message="国籍长度必须介于 0 和 1 之间")
	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBirthdayDate() {
		return birthdayDate;
	}

	public void setBirthdayDate(Date birthdayDate) {
		this.birthdayDate = birthdayDate;
	}
	
	@Length(min=0, max=100, message="籍贯长度必须介于 0 和 100 之间")
	public String getNativePlace() {
		return nativePlace;
	}

	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}
	
	@Length(min=0, max=100, message="邮编长度必须介于 0 和 100 之间")
	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	
	@Length(min=0, max=200, message="出生地长度必须介于 0 和 200 之间")
	public String getHomeplace() {
		return homeplace;
	}

	public void setHomeplace(String homeplace) {
		this.homeplace = homeplace;
	}
	
	@Length(min=0, max=200, message="住址长度必须介于 0 和 200 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=1, message="身份长度必须介于 0 和 1 之间")
	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}
	
	@Length(min=0, max=21, message="身份证号长度必须介于 0 和 21 之间")
	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
	
	@Length(min=0, max=20, message="电话长度必须介于 0 和 20 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=200, message="联系人长度必须介于 0 和 200 之间")
	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	
	@Length(min=0, max=200, message="联系人地址长度必须介于 0 和 200 之间")
	public String getContactsAddress() {
		return contactsAddress;
	}

	public void setContactsAddress(String contactsAddress) {
		this.contactsAddress = contactsAddress;
	}
	
	@Length(min=0, max=20, message="联系人电话长度必须介于 0 和 20 之间")
	public String getContactsPhone() {
		return contactsPhone;
	}

	public void setContactsPhone(String contactsPhone) {
		this.contactsPhone = contactsPhone;
	}
	
	@Length(min=0, max=200, message="合同单位长度必须介于 0 和 200 之间")
	public String getUnitInContract() {
		return unitInContract;
	}

	public void setUnitInContract(String unitInContract) {
		this.unitInContract = unitInContract;
	}
	
	@Length(min=0, max=1, message="费别长度必须介于 0 和 1 之间")
	public String getChargeType() {
		return chargeType;
	}

	public void setChargeType(String chargeType) {
		this.chargeType = chargeType;
	}
	
	@Length(min=0, max=64, message="组织机构长度必须介于 0 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getVisitDate() {
		return visitDate;
	}

	public void setVisitDate(String visitDate) {
		this.visitDate = visitDate;
	}

	public ClinicForRegist getClinicForRegist() {
		return clinicForRegist;
	}

	public void setClinicForRegist(ClinicForRegist clinicForRegist) {
		this.clinicForRegist = clinicForRegist;
	}

	public ClinicIndex getClinicIndex() {
		return clinicIndex;
	}

	public void setClinicIndex(ClinicIndex clinicIndex) {
		this.clinicIndex = clinicIndex;
	}

	public String getFirstVisitIndicator() {
		return firstVisitIndicator;
	}

	public void setFirstVisitIndicator(String firstVisitIndicator) {
		this.firstVisitIndicator = firstVisitIndicator;
	}
}